<%@ Page title="" language="C#" masterpagefile="~/Views/Shared/Site.Master" inherits="System.Web.Mvc.ViewPage<IndyMosaic.Org.Site.ViewData.Blog.Details>" %>

<asp:Content id="Content1" contentplaceholderid="TitleContent" runat="server">
    Details
</asp:Content>
<asp:Content id="Content2" contentplaceholderid="MainContent" runat="server">
    <h2>
        <%= Html.Encode(Model.BlogEntry.Title) %></h2>
    <div style="position: relative; top: -20px; font-size: smaller;">
        <div style="float: left; margin-right: 7px;">
            <%= Html.Encode(Model.BlogEntry.AuthorName)%>
        </div>
        <%--<div style="float: left;">
                <%= Html.Encode(String.Format("{0:g}", Model.BlogEntry.DatePublished))%>
            </div>--%>
        <div class="clear">
        </div>
    </div>
    <% if (!string.IsNullOrWhiteSpace(Model.BlogEntry.ImageURL))
       {  %>
    <div style="float: left; margin: 7px;">
        <img src='<%: Model.BlogEntry.ImageURL  %>' />
    </div>
    <% } %>
    <div>
        <%= Model.BlogEntry.Content.Replace("&lt;##MORE##&gt;", "")%></div>
    <div id="disqus_thread">
    </div>
    <%--<script type="text/javascript">
        var disqus_shortname = 'mosaicchurch'; // required: replace example with your forum shortname
        var disqus_developer = 1;
        // The following are highly recommended additional parameters. Remove the slashes in front to use.
        var disqus_identifier = 'blog_id_<%= Model.BlogEntry.ID %>';
        var disqus_url = '<%= Request.Url.ToString()  %>';

        /* * * DON'T EDIT BELOW THIS LINE * * */
        (function () {
            var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
            dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
            (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
        })();
    </script>
    <noscript>
        Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments
            powered by Disqus.</a></noscript>
    <a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">
        Disqus</span></a>
    <div style="margin-top: 30px;">--%>
        <%=Html.ActionLink("Back to the blogs", "Index") %>
    </div>
</asp:Content>
